package com.entor.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.entor.model.Menu;
import com.entor.model.Role;
import com.entor.model.RoleMenu;

public interface RoleDaoI extends BaseDaoI<Role>{

	public int grant(@Param(value="rid") String rid,
			@Param(value="list") List<String> list);
	
	public int removeRid(@Param(value="rid") String rid);
	
	public List<RoleMenu> findRoleMenu(RoleMenu r);
	
	public List<Menu> findMenuByRid(@Param(value="rid") Integer rid);
}
